package drg_group.changzhou_2022.ADRG;

import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;

import drg_group.changzhou_2022.Base;
import drg_group.changzhou_2022.MedicalRecord;
import drg_group.changzhou_2022.DRG.MDCZ_DRG;

public class ZC1 {
    public static String group(MedicalRecord record){
        String[] adrg_zd={};
        String[] adrg_zd1={};
        String[] adrg_ss={"00.7000x001","00.7100x001","00.7200x001","00.7201","00.8000x001","00.8100x001","00.8200x001","00.8201","00.8300x001","00.8500x001","00.8600x001","00.8700x001","01.0100x002","01.0200x001","01.0900x002","01.0900x003","01.0900x004","01.0900x005","01.0901","01.1000x001","01.1200","01.1400","01.1500","01.1800x002","38.0300x003","38.0300x005","38.0301","38.0302","38.0602","38.0702","38.0800x002","38.0800x003","38.0801","38.0900x001","38.0900x002","38.1800x001","38.1800x002","38.1800x003","38.1800x004","38.1800x005","38.1800x006","38.3800","38.4300x002","38.4900x001","38.4900x002","38.6302","38.6800x002","38.6901","38.8300x004","38.8301","38.8302","38.8303","38.8801","38.8901","39.2900x001","39.2900x002","39.2900x003","39.2900x004","39.2900x005","39.2900x010","39.2900x026","39.2900x027","39.2900x028","39.2900x033","39.2900x035","39.2900x037","39.2900x039","39.2900x040","39.2900x041","39.2900x044","39.2900x045","39.2902","39.2906","39.2907","39.2908","39.2916","39.3100x002","39.3100x007","39.3100x009","39.3100x010","39.3206","39.5900x022","39.7900x809","39.9009","39.9011","39.9013","77.0200","77.0301","77.0302","77.0401","77.0402","77.0500","77.0600","77.0701","77.0702","77.0801","77.0802","77.0900x004","77.0902","77.0903","77.0904","77.1200x001","77.1500x001","77.1500x002","77.1500x003","77.1500x005","77.1500x006","77.1501","77.1502","77.1600x001","77.1601","77.1700x001","77.1701","77.1702","77.1703","77.1900x001","77.2200x001","77.2200x002","77.2200x003","77.2300x001","77.2300x002","77.2301","77.2302","77.2400x002","77.2401","77.2500x001","77.2500x002","77.2500x003","77.2500x004","77.2500x005","77.2500x006","77.2500x007","77.2500x008","77.2500x009","77.2700x001","77.2700x003","77.2701","77.2702","77.2703","77.2800x001","77.2800x002","77.2802","77.2900x001","77.2900x003","77.2900x004","77.2900x005","77.2900x006","77.6201","77.6301","77.6302","77.6401","77.6402","77.6501","77.6601","77.6701","77.6702","77.6801","77.6802","77.6900x001","77.6900x004","77.6900x007","77.6900x013","77.6900x020","77.6900x025","77.6900x032","77.6900x039","77.6900x047","77.6900x055","77.6900x056","77.6901","77.6902","77.6903","77.6904","77.7200","77.7301","77.7302","77.7701","77.7702","77.7900x001","77.7900x005","77.7901","77.8200","77.8200x002","77.8300x002","77.8300x005","77.8301","77.8303","77.8401","77.8500","77.8501","77.8502","77.8600","77.8700x003","77.8700x004","77.8701","77.8702","77.8900x002","77.8900x004","77.8900x005","77.8900x008","77.8900x013","77.8900x017","77.8900x026","77.8900x027","77.8902","77.8903","77.8904","77.8906","77.8908","77.9200","77.9301","77.9302","77.9401","77.9402","77.9500","77.9600","77.9701","77.9702","77.9801","77.9802","77.9803","77.9804","77.9805","77.9900x003","77.9900x004","77.9901","77.9902","77.9903","77.9904","77.9906","78.0200x001","78.0200x002","78.0300x004","78.0300x005","78.0301","78.0302","78.0400x001","78.0401","78.0402","78.0403","78.0500x001","78.0500x002","78.0501","78.0600x001","78.0600x003","78.0700x004","78.0700x005","78.0700x006","78.0701","78.0702","78.0900x001","78.0900x008","78.0900x009","78.0900x010","78.0900x011","78.0900x012","78.0900x013","78.0900x014","78.0900x015","78.0900x016","78.0900x017","78.0900x018","78.0900x019","78.0900x020","78.0900x021","78.0902","78.0903","78.0904","78.1201","78.1301","78.1302","78.1401","78.1402","78.1501","78.1601","78.1701","78.1702","78.1801","78.1802","78.1900x004","78.1902","78.1903","78.2901","78.3200x001","78.3301","78.3302","78.3400x001","78.3401","78.3500x001","78.3701","78.3702","78.3800x001","78.3800x002","78.3900x001","78.4101","78.4104","78.4105","78.4106","78.4201","78.4301","78.4302","78.4401","78.4402","78.4501","78.4600x002","78.4600x003","78.4700x001","78.4701","78.4702","78.4801","78.4802","78.4900x001","78.4900x005","78.4900x006","78.5200x003","78.5200x004","78.5200x005","78.5200x006","78.5201","78.5300x002","78.5300x003","78.5300x004","78.5300x005","78.5300x006","78.5300x007","78.5300x008","78.5300x009","78.5301","78.5302","78.5400x003","78.5400x004","78.5400x005","78.5400x006","78.5400x007","78.5400x008","78.5400x009","78.5400x010","78.5400x011","78.5400x012","78.5500x003","78.5500x005","78.5500x006","78.5500x007","78.5500x008","78.5501","78.5600x001","78.5600x002","78.5600x003","78.5700x003","78.5700x004","78.5700x005","78.5700x006","78.5700x007","78.5700x008","78.5700x009","78.5700x010","78.5700x011","78.5700x012","78.5800x002","78.5800x003","78.5800x005","78.5800x006","78.5800x007","78.5800x008","78.5800x009","78.5900x019","78.5900x020","78.5900x022","78.5900x025","78.5900x026","78.5900x031","78.5900x032","78.5900x033","78.5900x034","78.5900x035","78.5900x036","78.6201","78.6301","78.6303","78.6401","78.6403","78.6501","78.6600x002","78.6600x003","78.6601","78.6602","78.6701","78.6702","78.6703","78.6704","78.6705","78.6706","78.6801","78.6802","78.6803","78.6804","78.6900x002","78.6903","78.6904","78.6906","78.7200","78.7301","78.7302","78.7401","78.7402","78.7500","78.7701","78.7702","78.7801","78.7802","78.7902","78.7904","79.0100x001","79.0201","79.0202","79.0301","79.0302","79.0400x004","79.0401","79.0500x002","79.0601","79.0602","79.0603","79.0604","79.0700x002","79.0700x005","79.0701","79.0702","79.0801","79.0901","79.1100x002","79.1100x003","79.1100x004","79.1100x005","79.1200x003","79.1200x004","79.1200x005","79.1200x006","79.1200x007","79.1200x008","79.1200x009","79.1200x010","79.1300x003","79.1300x004","79.1300x005","79.1300x006","79.1300x007","79.1300x008","79.1300x009","79.1400x002","79.1400x003","79.1400x004","79.1500x006","79.1500x007","79.1500x008","79.1600x004","79.1600x006","79.1600x007","79.1600x008","79.1600x009","79.1600x010","79.1600x011","79.1600x012","79.1600x013","79.1600x014","79.1700x005","79.1700x006","79.1700x007","79.1700x009","79.1700x010","79.1700x011","79.1700x012","79.1800x002","79.1800x003","79.1900x005","79.1900x006","79.1900x007","79.1900x008","79.1900x009","79.1902","79.1903","79.2101","79.2201","79.2202","79.2301","79.2302","79.2400x002","79.2401","79.2501","79.2601","79.2602","79.2603","79.2700x004","79.2701","79.2702","79.2900x004","79.3100x004","79.3100x005","79.3100x006","79.3100x007","79.3100x008","79.3100x009","79.3101","79.3200x001","79.3200x002","79.3200x009","79.3200x010","79.3200x011","79.3200x012","79.3200x013","79.3200x014","79.3201","79.3202","79.3300x005","79.3300x006","79.3300x007","79.3300x008","79.3300x009","79.3300x010","79.3300x012","79.3300x013","79.3400x002","79.3400x003","79.3400x004","79.3400x005","79.3400x006","79.3500x016","79.3500x017","79.3500x018","79.3500x019","79.3500x020","79.3600x008","79.3600x009","79.3600x010","79.3600x011","79.3600x012","79.3600x013","79.3600x014","79.3600x015","79.3600x016","79.3600x017","79.3600x018","79.3600x019","79.3700x010","79.3700x011","79.3700x012","79.3700x013","79.3700x014","79.3700x015","79.3700x016","79.3700x017","79.3700x018","79.3700x019","79.3700x020","79.3800x002","79.3800x003","79.3800x004","79.3900x001","79.3900x002","79.3900x052","79.4101","79.4201","79.4202","79.4501","79.4601","79.6201","79.6500","79.6601","79.6602","79.6701","79.6702","79.6800","79.6900x002","79.7200","79.7500","79.7600","79.7600x001","79.7900x002","79.7900x003","79.7900x005","79.7900x006","79.8100x003","79.8200","79.8200x001","79.8201","79.8300","79.8300x001","79.8301","79.8401","79.8500","79.8500x001","79.8600","79.8600x002","79.8700","79.8801","79.8803","79.8900x001","79.8900x002","79.8900x003","79.8900x005","79.8900x006","79.8900x007","80.0100x001","80.0100x002","80.0200x001","80.0200x002","80.0201","80.0300x001","80.0300x002","80.0400x001","80.0400x002","80.0500x001","80.0500x003","80.0501","80.0600x001","80.0600x002","80.0601","80.0700x001","80.0700x002","80.0800x001","80.0800x002","80.0900x001","80.1101","80.1200","80.1201","80.1300","80.1300x002","80.1400","80.1500","80.1501","80.1600","80.1601","80.1602","80.1603","80.1701","80.1800x003","80.1801","80.1802","80.4101","80.4102","80.4201","80.4202","80.4300x001","80.4301","80.4400x001","80.4400x004","80.4401","80.4500x001","80.4501","80.4601","80.4603","80.4700x002","80.4701","80.4800x002","80.4800x005","80.4801","80.4802","80.4901","80.5100x008","80.5100x011","80.5100x013","80.5100x023","80.5100x024","80.5100x025","80.5100x026","80.5100x027","80.5100x028","80.5100x029","80.5100x030","80.5100x031","80.5100x032","80.5100x033","80.5100x034","80.5100x035","80.5100x036","80.5100x037","80.5100x038","80.5100x039","80.5101","80.5102","80.5103","80.5104","80.5105","80.5106","80.5107","80.5108","80.5109","80.5110","80.5111","80.5200","80.5400x001","80.5401","80.5900x001","80.5900x003","80.6x00x002","80.6x00x010","80.6x00x011","80.6x01","80.6x02","80.6x03","80.6x05","80.6x06","80.6x07","80.6x08","80.7100","80.7101","80.7200","80.7201","80.7300","80.7301","80.7400","80.7500","80.7501","80.7600","80.7601","80.7700","80.7701","80.7800","80.7800x002","80.7801","80.8101","80.8102","80.8200x003","80.8201","80.8202","80.8301","80.8302","80.8401","80.8402","80.8501","80.8502","80.8600x009","80.8601","80.8602","80.8700x007","80.8701","80.8702","80.8800x003","80.8801","80.9900x003","80.9900x005","80.9900x006","80.9901","80.9902","80.9903","81.0100x001","81.0101","81.0102","81.0103","81.0104","81.0105","81.0200x001","81.0200x002","81.0300x001","81.0300x002","81.0400x004","81.0400x005","81.0401","81.0402","81.0500x005","81.0500x006","81.0501","81.0502","81.0600x005","81.0600x006","81.0601","81.0602","81.0700x002","81.0701","81.0702","81.0800x016","81.0800x017","81.0800x018","81.0801","81.0802","81.1100","81.1100x003","81.1101","81.1200x001","81.1300x003","81.1300x004","81.1400","81.1400x002","81.1500","81.1600","81.1700x001","81.1700x003","81.1800","81.2201","81.2300x002","81.2300x003","81.2300x004","81.2300x005","81.2301","81.2401","81.2500x002","81.2500x003","81.2500x004","81.2501","81.2601","81.2701","81.2801","81.3101","81.3102","81.3103","81.3104","81.3105","81.3106","81.3200x001","81.3200x002","81.3300x001","81.3300x002","81.3400x003","81.3400x004","81.3401","81.3402","81.3500x003","81.3500x004","81.3501","81.3502","81.3600x003","81.3600x004","81.3601","81.3602","81.3700x001","81.3700x002","81.3701","81.3702","81.3800x003","81.3800x004","81.3800x005","81.3801","81.3802","81.3900","81.4000","81.4000x004","81.4000x005","81.4000x006","81.4001","81.4200","81.4300","81.4401","81.4402","81.4403","81.4501","81.4502","81.4503","81.4504","81.4505","81.4600x001","81.4601","81.4700x001","81.4700x005","81.4700x012","81.4700x013","81.4700x014","81.4700x015","81.4700x016","81.4700x017","81.4700x018","81.4700x019","81.4701","81.4900x001","81.4900x002","81.4900x003","81.4900x004","81.4900x005","81.4900x006","81.5100","81.5200x004","81.5201","81.5202","81.5400","81.5400x004","81.5400x005","81.5400x007","81.5400x008","81.5401","81.5600","81.5700x001","81.5700x002","81.6200","81.6300","81.6400x003","81.6500","81.6600x001","81.6600x002","81.6600x003","81.6601","81.7100x001","81.7100x002","81.7100x003","81.7200x002","81.7200x003","81.7200x004","81.7200x005","81.7200x006","81.7300x001","81.7400x001","81.7400x002","81.7500x001","81.7500x002","81.7500x003","81.7500x004","81.7500x005","81.8000","81.8000x003","81.8100","81.8101","81.8200","81.8300x001","81.8300x003","81.8300x004","81.8300x006","81.8300x007","81.8300x008","81.8305","81.8400","81.8400x002","81.8500x001","81.8500x002","81.8500x004","81.8500x005","81.8500x006","81.8500x007","81.8500x008","81.8800","81.9300x003","81.9300x004","81.9300x005","81.9300x006","81.9300x007","81.9300x008","81.9300x009","81.9300x010","81.9301","81.9302","81.9400x001","81.9400x006","81.9400x007","81.9401","81.9402","81.9403","81.9404","81.9500x001","81.9501","81.9502","81.9600x003","81.9600x015","81.9600x017","81.9600x018","81.9600x019","81.9600x020","81.9600x021","81.9600x022","81.9600x023","81.9600x024","81.9600x025","81.9600x026","81.9600x027","81.9600x028","81.9600x029","81.9600x030","81.9600x031","81.9700x002","81.9701","81.9702","81.9703","82.0101","82.0102","82.0200x001","82.0300","82.0401","82.0402","82.1100x002","82.1101","82.1200x002","82.1201","82.2100","82.2200","82.2900x001","82.3200x001","82.3301","82.3400x001","82.3400x002","82.3500x001","82.3500x002","82.3600x001","82.4100","82.4200","82.4300x001","82.4400x001","82.4400x002","82.4500x001","82.4500x009","82.4500x010","82.4500x011","82.4500x012","82.4500x013","82.4601","82.4602","82.5100","82.5200","82.5301","82.5401","82.5501","82.5600x002","82.5600x003","82.5600x004","82.5600x005","82.5601","82.5700x001","82.5801","82.5900x001","82.6100x002","82.6900x002","82.6901","82.7100x001","82.7100x002","82.7201","82.7202","82.7900x001","82.8100x001","82.8500x001","82.8500x002","82.8600x001","82.8600x006","82.8600x010","82.8600x011","82.8600x012","82.8600x013","82.8901","83.0100x001","83.0101","83.0300","83.1300x001","83.1300x004","83.1300x006","83.1403","83.1900x001","83.1900x003","83.1900x010","83.1900x023","83.2900x002","83.3100x001","83.3100x008","83.3200x009","83.3200x012","83.6300","83.6400x007","83.6400x008","83.6400x009","83.6400x011","83.6400x013","83.6500x002","83.6500x003","83.6500x005","83.6500x006","83.6500x011","83.6500x012","83.6500x013","83.6500x016","83.7500x003","83.7600x002","83.7600x005","83.7700x001","83.7700x003","83.7700x004","83.7700x005","83.7700x006","83.7700x007","83.7700x008","83.7700x009","83.7700x010","83.7700x011","83.7700x012","83.7700x013","83.7700x014","83.7700x015","83.7700x016","83.7700x017","83.7700x018","83.7700x019","83.7700x020","83.7700x021","83.7700x022","83.7700x023","83.7700x024","83.7700x025","83.7700x026","83.7700x027","83.7700x028","83.7700x029","83.7700x030","83.7700x031","83.7700x032","83.7700x033","83.7701","83.7702","83.7900x002","83.7900x003","83.8500x001","83.8500x002","83.8500x003","83.8500x004","83.8500x005","83.8500x008","83.8500x009","83.8500x010","83.8600","83.8700x003","83.8700x007","83.8800x010","83.8800x012","83.8800x014","83.9100x004","83.9100x009","84.0100x001","84.0100x002","84.0100x004","84.0101","84.0103","84.0201","84.0202","84.0301","84.0400","84.0500","84.0600","84.0701","84.0800","84.1101","84.1200","84.1300","84.1400","84.1500x002","84.1600","84.1701","84.1800","84.1901","84.2101","84.2201","84.2301","84.2302","84.2303","84.2304","84.2401","84.2501","84.2601","84.2701","84.2801","84.5100x002","84.5100x003","84.5100x004","84.5100x005","84.5100x006","84.5300","84.5400x001","84.5900x002","84.6101","84.6201","84.6300x002","84.6300x003","84.6301","84.6400x001","84.6400x003","84.6401","84.6500","84.6501","84.6600x001","84.6601","84.6700x002","84.6701","84.6800x001","84.6801"};
        String[] adrg_ss1={};
        
        if (true && record.ssList!=null && record.ssList.length>0 && Base.contains(adrg_ss,record.ssList[0])){
            Base.groupMessages.putMessage(record.Index,"符合ZC1入组条件，匹配规则：主手术匹配");
                
            if (MDCZ_DRG.ZC14_group(record)){
                return "ZC14";
            }
    
            if (MDCZ_DRG.ZC18_group(record)){
                return "ZC18";
            }

            return "ZC1";
        }else{
            return "";
        }
    }
}

